package com.cloud.salon.common.base.constant;

/**
 * @Description 记录状态常量
 * @Author wolf--LZH
 * @CreateDate 2019/4/24 0024 上午 12:07
 */
public class RecordStatusConstant {

    private static final String[] STATUS = {
            "未支付",
            "未付清",
            "已支付",
            "已取消"
    };

    /*
     * @Description 0--未支付 1--未付清  2--已支付  3--已取消
     * @Author wolf--LZH
     */
    public static final Integer UNPAY = 0;
    public static final Integer UNPAY_CLEAR = 1;
    public static final Integer PAID = 2;
    public static final Integer CANCEL = 3;

    public static String getStatus(Integer status) {
        if(status == null || status < 0 || status >= STATUS.length)
            return "错误信息";
        return STATUS[status];
    }
}
